package fileIO;

import java.io.File;
import java.io.IOException;

public class Demo1_funcs {
    public static void main(String[] args) throws IOException {
        File file = new File("./text.txt");
        boolean created = file.createNewFile();
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(file.isDirectory());
//        boolean result = file.delete();
        file.deleteOnExit();
    }
}
